package common.main.google;

public class GoogleScholarXpath {

    public static String title="//H3[@class='gs_rt']";
    public static String url="//DIV[@id='gs_res_ccl_mid']/DIV[<n>]/DIV[@class='gs_ri']/H3/A/@href";

    public static String yearsCite="//DIV[@id='gs_ab_md']/DIV[@class='gs_ab_mdw']";// example : 2015=20,2016=18,2017=22,2018=16,
    public static String pubYear = "//DIV[@class='gs_a']";
    public static String citeNum="//DIV[@class='gs_fl']//A[contains(@href,'cites=')]";
    public static String paperInfo="//DIV[@class='gs_r gs_or gs_scl']";
    public static String authors="//DIV[@class='gs_a']";
    public static String authorsUrl="//DIV[@class='gs_a']/A";
    public static String brief="//DIV[@class='gs_rs']";
    public static String citeNumUrl="//DIV[@class='gs_fl']//A[contains(@href,'cites=')]/@href";
    public static String nextURL= "//TR[@align='center']//TD[@align='left']/A/@href";


    /**
     * Springer站点的XPATH
     */
    public static String Springer_AuthorsName = "//UL[@class='test-contributor-names']/LI[@class='u-mb-2 u-pt-4 u-pb-4']/SPAN[@class='authors-affiliations__name']";
    public static String Springer_AuthorsAffNo = "//UL[@class='test-contributor-names']/LI[<n>]/UL/LI";
    public static String Springer_AffiliationsNum = "//OL[@class='test-affiliations']/LI[@class='affiliation']/SPAN[@class='affiliation__count']";
    public static String Springer_AffiliationName = "//OL[@class='test-affiliations']/LI[<n>]/SPAN[@class='affiliation__item']/SPAN[@class='affiliation__name']";
    public static String Springer_AffiliationRegion = "//OL[@class='test-affiliations']/LI[<n>]/SPAN[@class='affiliation__item']//SPAN[@class='affiliation__city']";
    public static String Springer_AffiliationCountry = "//OL[@class='test-affiliations']/LI[<n>]/SPAN[@class='affiliation__item']//SPAN[@class='affiliation__country']";

    public static String Springer_Keywords = "//DIV[@class='KeywordGroup']/SPAN";
    public static String Springer_journal = "//DIV[@class='ArticleHeader main-context']/DIV[@id='enumeration']/P/A/SPAN[@class='JournalTitle'] | " +
            "//DIV[@class='ArticleHeader main-context']/DIV[@id='enumeration']/P/SPAN[@class='BookTitle']/A | " +
            "//DIV[@class='ArticleHeader main-context']/DIV[@id='enumeration']/DIV/A/SPAN[@data-test='ConfSeriesName']";
    public static String Springer_references = "//DIV[@class='content']/OL/LI[@class='Citation']/DIV[@class='CitationContent']";
    public static String Springer_references_span = "//DIV[@class='content']/OL/LI[<n>]/DIV[@class='CitationContent']/SPAN";

    public static String springer_doi = "//SPAN[@id='doi-url']";
    //期刊还是会议
    public static String springer_paperClass = "//SPAN[@class='test-render-category']";
    /**
     * WILEY 站点的XPATH
     */
    public static String WILEY_AuthorsName = "//DIV[@id='sb-1']/DIV[@class='accordion-tabbed']/DIV/A/SPAN";
    public static String WILEY_AffiliationName = "//DIV[@id='sb-1']/DIV[@class='accordion-tabbed']/DIV[<n>]/DIV/P[last()]";
    public static String WILEY_Keywords = "//META[@name='citation_keywords']/@content";
    public static String WILEY_journal = "//META[@name='citation_journal_title']/@content";
    public static String WILEY_referencesName = "//UL[@class='rlist separator']/LI[@class='citedByEntry']/SPAN[2]";
    public static String WILEY_referencesAuthor = "//UL[@class='rlist separator']/LI[<n>]/SPAN[@class='entryAuthor']";
    public static String WILEY_DOI = "//A[@class='epub-doi']";

    /**
     * Elsevier 站点的XPATH
     */
    public static String Elsevier_journal = "//H2[@id='publication-title']/A[@class='publication-title-link'] | " +
            "//DIV[@id='publication']/DIV[@class='publication-brand']/A/IMG/@alt";
    public static String Elsevier_AffiliationName = "//SCRIPT[@type='application/json']";
    public static String Elsevier_Keywords = "//DIV[@class='Keywords']/DIV/DIV[@class='keyword']/SPAN";
    public static String Elsevier_doi = "//DIV[@id='doi-link']/A[@class='doi']";
    /**
     * Taylor & Francis站点的XPATH
     */
    public static String TaylorAndFrancis_journal = "//DIV[@class='title-container']/H1/A";
    public static String TaylorAndFrancis_AuthorsName = "//SPAN[@class='NLM_contrib-group']/SPAN/A";
    public static String TaylorAndFrancis_AffiliationName = "//SPAN[@class='NLM_contrib-group']/SPAN[<n>]/A/SPAN";
    public static String TaylorAndFrancis_referencesUrl = "//A[@class='show-references']/@href";
    public static String TaylorAndFrancis_referencesName = "//UL[@class='references numeric-ordered-list']/LI/SPAN/SPAN[@class='NLM_article-title']";
    public static String TaylorAndFrancis_referencesAuthor = "//UL[@class='references numeric-ordered-list']/LI[<n>]/SPAN/SPAN[@class='hlFld-ContribAuthor']";
    public static String TaylorAndFrancis_doi = "LI[@class='dx-doi']/A";
    //期刊还是会议
    public static String TaylorAndFrancis_paperClass = "//SPAN[@class='titleHeading']";

    /**
     * IEEE站点的XPATH
     */
    public static String IEEE_json = "//SCRIPT[@type='text/javascript']";
    public static String IEEE_references  ="//BODY";

    /**
     * 获取作者详细信息
     */

    public static String AuthorInfo_Name = "//DIV[@id='gs_res_ccl_mid']/DIV[1]/DIV[@class='gs_ri']/DIV[@class='gs_a']";
    public static String AuthorInfo_url = "//DIV[@id='gs_res_ccl_mid']/DIV[1]/DIV[@class='gs_ri']/DIV[@class='gs_a']/A";
    public static String AuthorInfo_affiliation = "//DIV[@id='gsc_prf_i']/DIV[2]";
    public static String AuthorInfo_hIndex = "//TABLE[@id='gsc_rsb_st']/TBODY/TR[2]/TD[2]";
    public static String AuthorInfo_years_cite_year = "//DIV[@class='gsc_md_hist_b']/SPAN";
    public static String AuthorInfo_years_cite_cite = "//DIV[@class='gsc_md_hist_b']/A";

    public static String AuthorInfo_coAuthor_findAll = "//DIV[@id='gsc_rsb_co']/H3[@class='gsc_rsb_header']/BUTTON";
    //有查看全部时
    public static String AuthorInfo_coAuthor_name_first = "//DIV[@id='gsc_codb_content']/DIV[@class='gsc_ucoar gs_scl']/DIV[@class='gsc_oai']/H3/A";
    public static String AuthorInfo_coAuthor_affiliation_first = "//DIV[@id='gsc_codb_content']/DIV[<n>]/DIV[@class='gsc_oai']/DIV[1]";
    //无查看全部时
    public static String AuthorInfo_coAuthor_name_second = "//UL[@class='gsc_rsb_a']/LI/DIV[@class='gsc_rsb_aa']/SPAN[@class='gsc_rsb_a_desc']/A";
    public static String AuthorInfo_coAuthor_affiliation_second = "//UL[@class='gsc_rsb_a']/LI[<n>]/DIV[@class='gsc_rsb_aa']/SPAN[@class='gsc_rsb_a_desc']/SPAN[1]";
}
